import { RouteView } from './router/router'
import { HashRouter } from 'react-router-dom'
import { ConfigProvider, theme } from 'antd'
import enUS from 'antd/locale/en_US'
import { ProConfigProvider } from '@zoom-design/zoom-design-demo'

export const WmsApp = () => {
  // const {token} = theme.useToken()
  return (
    <>
      <ProConfigProvider hashed={false}>
        <ConfigProvider
          theme={{ algorithm: theme.defaultAlgorithm, token: { colorPrimary: 'red' } }}
          componentSize={'small'}
          locale={enUS}
        >
          <HashRouter>
            <RouteView />
          </HashRouter>
        </ConfigProvider>
      </ProConfigProvider>
    </>
  )
}

